package com.chushouya.order.dto.api.partnernotify;

import com.alibaba.fastjson.annotation.JSONField;
import com.general.framework.core.lang.Dates;
import com.chushouya.order.constants.PartnerNotifyTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("订单派单成功")
public class DispatchNotifyDTO extends PartnerBaseNotify{
    public DispatchNotifyDTO(){
        super.setNotifyType(PartnerNotifyTypeEnum.DISPATCH.value());
        super.setNotifyName(PartnerNotifyTypeEnum.DISPATCH.named());
    }

    /**
     * 订单数据
     */
    private DispatchNotifyData data;

    @Data
    @ApiModel("用户派单数据")
    public static class DispatchNotifyData{

        /**
         * 订单状态
         */
        @ApiModelProperty("订单状态")
        private Integer orderStatus;

        @ApiModelProperty("派单时间")
        @JSONField(format= Dates.FMT_FULL_TIME)
        private Date dispatchTime;

        @ApiModelProperty("上门工程师姓名")
        private String clerkName;

        @ApiModelProperty("上门工程师手机号")
        private String clerkPhone;

        @ApiModelProperty("上门城市")
        private String city;
    }
}
